<%-- 
    Document   : B1
    Created on : 2014/8/12, 上午 09:21:27
    Author     : gjun
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <%= session.getId() %> <br>
        <a href="B2.jsp;jsessionid=<%= session.getId() %>">B2</a><br>
        <form action="B2.jsp;jsessionid=<%= session.getId() %>">
            <input type="text" name="user">
            <input type="submit">
        </form>
        <%= session.getAttribute("user") %>
        <br>
        <a href="<%=  response.encodeURL("B2.jsp")  %>">B2</a> <br>
        
        <form action="B3.jsp;jsessionid=<%= session.getId() %>">
            <input type="text" name="user">
            <input type="text" name="pname">
            <input type="submit">
        </form>
        
        
    </body>
</html>
